<template>
  <main>
    <h1>通知公告</h1>
    <p>{{ notice }}</p>
  </main>
</template>
<script setup>
import { getNotice, save } from "@/api/notice";
import { ref } from "vue";

const notice = ref("");
const getData = async () => {
  let data = await getNotice();
  notice.value = data.data.data.content;
};
getData();
</script>
<style lang="less" scoped>
main {
  padding: 20px 40px;
  box-sizing: border-box;
  border-radius: 10px;
  background-color: #fff;
  box-shadow: 5px 5px 15px 5px #ececec;
  width: 100%;
  min-height: 80vh;
}
h1 {
  text-align: center;
  margin-bottom: 50px;
}
</style>
